wayland: use g_signal_handler_disconnect()
authorChristian Hergert <chergert@redhat.com>
Fri, 6 May 2016 08:31:41 +0000 (11:31 +0300)
committerChristian Hergert <chergert@redhat.com>
Fri, 6 May 2016 08:33:12 +0000 (11:33 +0300)
commitebb894cd64a84ec99da493622132821740ff91ee
treea0444737faa4d3d85c904da8050dafc6545bfde7
parentc27b8b48ab0d01e6276bb652157ed48080bcaed4
wayland: use g_signal_handler_disconnect()

Use of g_signal_handlers_disconnect_by_func() needs to do more work than
necessary to find all the matching handlers. Instead, just hold on to the
signal identifier and remove it directly so we hit the fast path.

Not terribly ground breaking in terms of performance gains, but its done
enough to be worthwhile.

https://bugzilla.gnome.org/show_bug.cgi?id=766049
gdk/wayland/gdkwindow-wayland.c